home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 317 / asmsrc / append.c next >
Encoding:
Text File  |  1988-10-20  |  1.2 KB  |  37 lines

  1. /* append.c - - */
  2.  
  3. /* Copyright (C) 1987 Free Software Foundation, Inc.
  4.  
  5. This file is part of Gas, the GNU Assembler.
  6.  
  7. The GNU assembler is distributed in the hope that it will be
  8. useful, but WITHOUT ANY WARRANTY.  No author or distributor
  9. accepts responsibility to anyone for the consequences of using it
  10. or for whether it serves any particular purpose or works at all,
  11. unless he says so in writing.  Refer to the GNU Assembler General
  12. Public License for full details.
  13.  
  14. Everyone is granted permission to copy, modify and redistribute
  15. the GNU Assembler, but only under the conditions described in the
  16. GNU Assembler General Public License.  A copy of this license is
  17. supposed to have been given to you along with the GNU Assembler
  18. so you can know your rights and responsibilities.  It should be
  19. in a file named COPYING.  Among other things, the copyright
  20. notice and this notice must be preserved on all copies.  */
  21.  
  22. /* JF:  This is silly.  Why not stuff this in some other file? */
  23.  
  24. void
  25. append (charPP, fromP, length)
  26. char    **charPP;
  27. char    *fromP;
  28. unsigned long length;
  29. {
  30.     if (length) {        /* Don't trust bcopy() of 0 chars. */
  31.         bcopy (fromP, * charPP,(int) length);
  32.         *charPP += length;
  33.     }
  34. }
  35.  
  36. /* end: append.c */
  37.